home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7855 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.2 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: memory allocation using malloc and free
  5. Date: 27 Feb 96 16:27:19 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.825438439@rscernix>
  8. References: <4gagll$5rc@bertrand.ccs.carleton.ca> <4gbqd7$1em@inet-nntp-gw-1.us.oracle.com> <4gd8ngINNp5i@keats.ugrad.cs.ubc.ca> <danpop.824952492@rscernix> <4gqja2INN8vr@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: hpl3sn04.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) writes:
  13.  
  14. >By the way, it would have been good to show the other "following limits".
  15.  
  16. OK, here they are:
  17.  
  18. 2.2.4.1 Translation limits
  19.  
  20.    The implementation shall be able to translate and execute at least
  21. one program that contains at least one instance of every one of the
  22. following limits:
  23.  
  24.  * 15 nesting levels of compound statements, iteration control
  25.    structures, and selection control structures
  26.  
  27.  * 8 nesting levels of conditional inclusion 
  28.  
  29.  * 12 pointer, array, and function declarators (in any combinations)
  30.    modifying an arithmetic, a structure, a union, or an incomplete type
  31.    in a declaration
  32.  
  33.  * 31 declarators nested by parentheses within a full declarator 
  34.  
  35.  * 32 expressions nested by parentheses within a full expression 
  36.  
  37.  * 31 significant initial characters in an internal identifier or a
  38.    macro name
  39.  
  40.  * 6 significant initial characters in an external identifier 
  41.  
  42.  * 511 external identifiers in one translation unit 
  43.  
  44.  * 127 identifiers with block scope declared in one block 
  45.  
  46.  * 1024 macro identifiers simultaneously defined in one translation unit 
  47.  
  48.  * 31 parameters in one function definition 
  49.  
  50.  * 31 arguments in one function call 
  51.  
  52.  * 31 parameters in one macro definition 
  53.  
  54.  * 31 arguments in one macro invocation 
  55.  
  56.  * 509 characters in a logical source line 
  57.  
  58.  * 509 characters in a character string literal or wide string literal
  59.    (after concatenation)
  60.  
  61.  * 32767 bytes in an object (in a hosted environment only) 
  62.  
  63.  * 8 nesting levels for #include'd files 
  64.  
  65.  * 257 case labels for a switch statement (excluding those for any
  66.    nested switch statements)
  67.  
  68.  * 127 members in a single structure or union 
  69.  
  70.  * 127 enumeration constants in a single enumeration 
  71.  
  72.  * 15 levels of nested structure or union definitions in a single
  73.    struct-declaration-list
  74.  
  75. >To
  76. >what extent can you directly reproduce portions of the standard in the
  77. >newsgroup?  What is a reasonable quote and what is not?
  78.  
  79. The Copyright-FAQ describes the "fair use" doctrine, but I'm afraid it
  80. would be a little off-topic for c.l.c :-)  
  81.  
  82. Someone posting from a country which hasn't signed the Berne convention
  83. could even post the full document :-)
  84.  
  85. >I mean, if I were to
  86. >keep quoting K&R in responses to questions, _eventually_ someone will be able
  87. >to collect the entire work, which would mark me as a plagiarist. :)
  88.  
  89. If you read comp.std.c for a while, you'll end up with a significant
  90. fraction of the standard (especially if you know the conversion rules between
  91. the ANSI classic numbering and the ISO one).
  92.  
  93. Dan
  94. --
  95. Dan Pop
  96. CERN, CN Division
  97. Email: danpop@mail.cern.ch 
  98. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  99.